#include "ALBCut.h"

CALBCut::CALBCut()
{
}

CALBCut::CALBCut(CALStepItem* pStepItem)
{
	m_pStepItem = pStepItem;
}

CALBCut::~CALBCut()
{
}

void CALBCut::test()
{
	
}

void CALBCut::convert()
{
	if (m_pStepItem == NULL) return;

	try
	{
		CALSIBCut* pStepItem = (CALSIBCut*)m_pStepItem;
		int nX = pStepItem->GetItemPointX();
		int nY = pStepItem->GetItemPointY();
		int nWidth = pStepItem->GetItemWidth();
		int nHeight = pStepItem->GetItemHeight();

		Rect rect(nX, nY, nWidth, nHeight);
		m_dstMat = m_srcMat(rect);
		
		SetDstType(AL_DST_Mat_One);
	}
	catch (...)
	{

	}
}

void CALBCut::convert(const Mat &src, Mat &dst)
{

}